package com.bank6677.sync.csm.domain.old;

import java.util.Date;

/**
 * 贷款主申请表 table:loan_apply
 * @author liyue $ 2011-3-3 $
 */
public class LoanApply {
    private Long applyId;
    private Long institutionServiceMapId;
    private String iwUserId;
    private Long applyAmount;
    private String account;
    private String remark;
    private String proStat;
    private Date createDt;
    private Date updateDt;
    private Integer lastModifyAdminId;
    private Long areaId;
    private Long successAmount;
    private String sourceType;
    private String validType;
    private String loanPurpose;
    private Integer loanTime;
    private String lastProStat;
    private String acceptServiceInstitutionId;
    private String linkPhone;
    private String linkMan;
    private Integer type;
    private Integer adminId;
    private String agenterId;
    private String processStat;
    private String acceptInstitutionName;//处理机构名称
    private String serviceName;//贷款类型名称
    private String realName;//客户真实姓名
    private String name;//区域名称
    private LoanPawn loanPawn;
    
    private String isValidUser;
    private String photoAddress;
    
    
    /**
     * @return the isValidUser
     */
    public String getIsValidUser() {
        return isValidUser;
    }

    /**
     * @param isValidUser the isValidUser to set
     */
    public void setIsValidUser(String isValidUser) {
        this.isValidUser = isValidUser;
    }

    /**
     * @return the photoAddress
     */
    public String getPhotoAddress() {
        return photoAddress;
    }

    /**
     * @param photoAddress the photoAddress to set
     */
    public void setPhotoAddress(String photoAddress) {
        this.photoAddress = photoAddress;
    }
    
    public LoanApply(){}
    
    public LoanApply(Long id){
    	this.applyId = id;
    }
    
    public String getValidType() {
		return validType;
	}

	public void setValidType(String validType) {
		this.validType = validType;
	}

	public String getSourceType() {
		return sourceType;
	}

	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}

    public LoanPawn getLoanPawn() {
	return loanPawn;
}

public void setLoanPawn(LoanPawn loanPawn) {
	this.loanPawn = loanPawn;
}

	public String getRealName() {
	return realName;
}

public void setRealName(String realName) {
	this.realName = realName;
}

public String getName() {
	return name;
}

public void setName(String name) {
	this.name = name;
}

	public String getAcceptInstitutionName() {
	return acceptInstitutionName;
}

public void setAcceptInstitutionName(String acceptInstitutionName) {
	this.acceptInstitutionName = acceptInstitutionName;
}

public String getServiceName() {
	return serviceName;
}

public void setServiceName(String serviceName) {
	this.serviceName = serviceName;
}

	public String getProcessStat() {
		return processStat;
	}

	public void setProcessStat(String processStat) {
		this.processStat = processStat;
	}

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Long getInstitutionServiceMapId() {
        return institutionServiceMapId;
    }

    public void setInstitutionServiceMapId(Long institutionServiceMapId) {
        this.institutionServiceMapId = institutionServiceMapId;
    }

    public String getIwUserId() {
        return iwUserId;
    }

    public void setIwUserId(String iwUserId) {
        this.iwUserId = iwUserId == null ? null : iwUserId.trim();
    }

    public Long getApplyAmount() {
        return applyAmount;
    }

    public void setApplyAmount(Long applyAmount) {
        this.applyAmount = applyAmount;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getProStat() {
        return proStat;
    }

    public void setProStat(String proStat) {
        this.proStat = proStat == null ? null : proStat.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Integer getLastModifyAdminId() {
        return lastModifyAdminId;
    }

    public void setLastModifyAdminId(Integer lastModifyAdminId) {
        this.lastModifyAdminId = lastModifyAdminId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Long getSuccessAmount() {
        return successAmount;
    }

    public void setSuccessAmount(Long successAmount) {
        this.successAmount = successAmount;
    }

    public String getLoanPurpose() {
        return loanPurpose;
    }

    public void setLoanPurpose(String loanPurpose) {
        this.loanPurpose = loanPurpose == null ? null : loanPurpose.trim();
    }

    public Integer getLoanTime() {
        return loanTime;
    }

    public void setLoanTime(Integer loanTime) {
        this.loanTime = loanTime;
    }

    public String getLastProStat() {
        return lastProStat;
    }

    public void setLastProStat(String lastProStat) {
        this.lastProStat = lastProStat == null ? null : lastProStat.trim();
    }

    public String getAcceptServiceInstitutionId() {
        return acceptServiceInstitutionId;
    }

    public void setAcceptServiceInstitutionId(String acceptServiceInstitutionId) {
        this.acceptServiceInstitutionId = acceptServiceInstitutionId == null ? null : acceptServiceInstitutionId.trim();
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone == null ? null : linkPhone.trim();
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan == null ? null : linkMan.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAgenterId() {
        return agenterId;
    }

    public void setAgenterId(String agenterId) {
        this.agenterId = agenterId == null ? null : agenterId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanApply)) {
            return false;
        }
        LoanApply other = (LoanApply) that;
        return this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getInstitutionServiceMapId() == null ? other == null : this.getInstitutionServiceMapId().equals(other.getInstitutionServiceMapId())
            && this.getIwUserId() == null ? other == null : this.getIwUserId().equals(other.getIwUserId())
            && this.getApplyAmount() == null ? other == null : this.getApplyAmount().equals(other.getApplyAmount())
            && this.getAccount() == null ? other == null : this.getAccount().equals(other.getAccount())
            && this.getRemark() == null ? other == null : this.getRemark().equals(other.getRemark())
            && this.getProStat() == null ? other == null : this.getProStat().equals(other.getProStat())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getLastModifyAdminId() == null ? other == null : this.getLastModifyAdminId().equals(other.getLastModifyAdminId())
            && this.getAreaId() == null ? other == null : this.getAreaId().equals(other.getAreaId())
            && this.getSuccessAmount() == null ? other == null : this.getSuccessAmount().equals(other.getSuccessAmount())
            && this.getLoanPurpose() == null ? other == null : this.getLoanPurpose().equals(other.getLoanPurpose())
            && this.getLoanTime() == null ? other == null : this.getLoanTime().equals(other.getLoanTime())
            && this.getLastProStat() == null ? other == null : this.getLastProStat().equals(other.getLastProStat())
            && this.getAcceptServiceInstitutionId() == null ? other == null : this.getAcceptServiceInstitutionId().equals(other.getAcceptServiceInstitutionId())
            && this.getLinkPhone() == null ? other == null : this.getLinkPhone().equals(other.getLinkPhone())
            && this.getLinkMan() == null ? other == null : this.getLinkMan().equals(other.getLinkMan())
            && this.getType() == null ? other == null : this.getType().equals(other.getType())
            && this.getAdminId() == null ? other == null : this.getAdminId().equals(other.getAdminId())
            && this.getAgenterId() == null ? other == null : this.getAgenterId().equals(other.getAgenterId());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getInstitutionServiceMapId() != null) {
            hash *= getInstitutionServiceMapId().hashCode();
        }
        if (getIwUserId() != null) {
            hash *= getIwUserId().hashCode();
        }
        if (getApplyAmount() != null) {
            hash *= getApplyAmount().hashCode();
        }
        if (getAccount() != null) {
            hash *= getAccount().hashCode();
        }
        if (getRemark() != null) {
            hash *= getRemark().hashCode();
        }
        if (getProStat() != null) {
            hash *= getProStat().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getLastModifyAdminId() != null) {
            hash *= getLastModifyAdminId().hashCode();
        }
        if (getAreaId() != null) {
            hash *= getAreaId().hashCode();
        }
        if (getSuccessAmount() != null) {
            hash *= getSuccessAmount().hashCode();
        }
        if (getLoanPurpose() != null) {
            hash *= getLoanPurpose().hashCode();
        }
        if (getLoanTime() != null) {
            hash *= getLoanTime().hashCode();
        }
        if (getLastProStat() != null) {
            hash *= getLastProStat().hashCode();
        }
        if (getAcceptServiceInstitutionId() != null) {
            hash *= getAcceptServiceInstitutionId().hashCode();
        }
        if (getLinkPhone() != null) {
            hash *= getLinkPhone().hashCode();
        }
        if (getLinkMan() != null) {
            hash *= getLinkMan().hashCode();
        }
        if (getType() != null) {
            hash *= getType().hashCode();
        }
        if (getAdminId() != null) {
            hash *= getAdminId().hashCode();
        }
        if (getAgenterId() != null) {
            hash *= getAgenterId().hashCode();
        }
        return hash;
    }
}